import request from '../utils/request.js'

export const Search = (data) => {
    return request.get('/class/getallclass', {
        params: data
    })
}
//修改班级状态
export const UpdateStatus = (data) => {
    return request.post('/class/updatestatus', data)
}
//删除学生
export const DeleteStudent = (data) => {
    return request.delete('/classMember/deletestudent', {params:data})
}
//新增班级
export const AddClass = (data) => {
    return request.post('/class/addclass', data)
}
//修改班级信息
export const UpdateClass = (data) => {
    return request.put('/class/updateclass', data)
}
export const GetStudentClass = (data) => {
    return request.get('/class/getstudentclass', {
        params: data
    })
}
export const AddStudent = (data) => {
    return request.put('/classMember/addstudent', data)
}
